package com.dollarxy.dlmall.product.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.dollarxy.common.utils.PageUtils;
import com.dollarxy.dlmall.product.entity.SkuInfoEntity__;
import com.dollarxy.dlmall.product.vo.SkuItemVo;

import java.util.List;
import java.util.Map;
import java.util.concurrent.ExecutionException;

/**
 * sku信息
 *
 * @author dennis
 * @email dennis@dlmall.com
 * @date 2020-05-22 19:00:18
 */
public interface SkuInfoService extends IService<SkuInfoEntity__> {

    PageUtils queryPage(Map<String, Object> params);

    void saveSkuInfo(SkuInfoEntity__ skuInfoEntity);

    PageUtils queryPageCondition(Map<String, Object> params);

    List<SkuInfoEntity__> getSkusBySpuId(Long spuId);

    /**
     * 查询商品详情
     * @param skuId
     * @return
     */
    SkuItemVo item(Long skuId) throws ExecutionException, InterruptedException;
}

